package com.im.service.domain.vo;

import com.im.service.domain.entity.ImOrg;
import com.im.service.domain.entity.ImUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author liuzhiqiang
 */
@Data
@ApiModel(value = "AddressBookVO", description = "AddressBookVO")
public class AddressBookVO {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("label")
    private String label;

    @ApiModelProperty("类型 1 组织 2 用户")
    private Integer type;

    @ApiModelProperty("子集")
    private List<AddressBookVO> children;

    @ApiModelProperty("组织元数据")
    private ImOrg org;

    @ApiModelProperty("用户元数据")
    private ImUser user;
}
